using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Collections;
namespace Ent.Web.WebControl
{
    public class Helper
    {
        public static string[] GetSelectedValues(ListItemCollection liC)
        {
            ArrayList list = new ArrayList();
            for (int i = 0; i < liC.Count; i++)
            {
                if (liC[i].Selected)
                    list.Add(liC[i].Value);
                    
            }
            string[] retValue = new string[list.Count];
            for (int i = 0; i < list.Count; i++)
            {
                retValue.SetValue(list[i].ToString(), i);
            }
            return retValue;
        }
    }
}
